package com.fanix5.javamvvm.utils;

import android.view.Gravity;

import com.blankj.utilcode.util.ToastUtils;

public class ToastUtil {

    private static ToastUtil mInstance;


    public static ToastUtil getInstance() {

        if(mInstance == null){
            synchronized (ToastUtil.class){
                if(mInstance == null){
                    mInstance = new ToastUtil();
                }
            }
        }

        return mInstance;
    }

    public void show(CharSequence text){
        ToastUtils.make().setGravity(Gravity.CENTER,0,0).show(text);
    }


}
